<?php

require_once 'common/conn.php';
$result = array();
$db = new DBC();
if (isset($_GET['id'])) {
    $id = $_GET['id'];
    $sql = "UPDATE t_task_record SET acceptTime = now() WHERE id = " . $id;
    if ($db->execute($sql)) {
        $result['errorNo'] = "0";
        $result['errorMsg'] = "";
    } else {
        $result['errorNo'] = "1";
        $result['errorMsg'] = "领奖错误";
    }
}

echo json_encode($result);
?>
